<p> <%= current_user.login %>, your score for the questionnaire <b> <%= @questionnaire.name %></b> is <%= @questionnaire_score * 100 %> % </p>

<p> Name: <%= @questionnaire.name %>                                    </p>
<p> Used time: <%= pluralize(@used_hours, 'hour') +' '+ pluralize(@used_minutes, 'minute') %> </p>
<p> Maximum time: <%= pluralize(@max_hours, 'hour') +' '+ pluralize(@max_minutes, 'minute') %> </p>
<p> Created at: <%= @questionnaire.created_at.to_formatted_s(:short) %> </p>
<p> Created by: <%= @questionnaire.user.login %> </p>

<%= render :partial => 'question', :collection => @questionnaire.questions, :locals => {:corrections => @corrections} %>

<div id=links_section>
  <%= link_to 'Back to questionnaire page', questionnaire_path %>
  <%= link_to 'Back to \'List of Questionnaires\'', questionnaires_path %>
</div>